﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="profiles.aspx.cs" Inherits="admin_profiles" MasterPageFile="../MasterPage.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="SheetHeaderPlaceHolder" runat="Server">

    Welcome</asp:Content>
<asp:Content ID="SheetContent" ContentPlaceHolderID="SheetContentPlaceHolder" runat="Server">
    
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetAllUsers" TypeName="DBClass" DeleteMethod="DeleteUser">
            <DeleteParameters>
                <asp:Parameter Name="username" Type="String" />
            </DeleteParameters>
        </asp:ObjectDataSource>
    
        <asp:GridView ID="GridView1" runat="server" DataSourceID="ObjectDataSource1" 
            DataKeyNames="UserName" CellPadding="4" ForeColor="#333333" GridLines="Both" Width="850">
            <AlternatingRowStyle BackColor="#FAFAD2" ForeColor="#284775" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ButtonType="Image" DeleteImageUrl="../images/bt_close2.png" HeaderText="Delete" />
            </Columns>
            <EditRowStyle BackColor="#FFCC66"  ForeColor="#000080"/>
            <FooterStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="333333" />
            <HeaderStyle BackColor="#FFFFFF" Font-Bold="True" ForeColor="333333" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
    </asp:Content>
